live by the code

Translations
жить по кодексу
The knights vowed to live by the code of chivalry.
Рыцари поклялись жить по кодексу рыцарства.